<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%nbrb_attachment_upload}}".
 *
 * @property int $id
 * @property string $request_seq_no
 * @property string $order_number
 * @property string $attachment_type
 * @property string $file_url
 * @property string $number
 * @property string $at_number
 * @property int $created_at
 * @property int $updated_at
 */
class NbrbAttachmentUpload extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%nbrb_attachment_upload}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['request_seq_no', 'attachment_type', 'file_url', 'at_number', 'created_at', 'updated_at'], 'required'],
            [['file_url'], 'string'],
            [['created_at', 'updated_at'], 'integer'],
            [['request_seq_no', 'order_number', 'attachment_type', 'number'], 'string', 'max' => 50],
            [['at_number'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'request_seq_no' => Yii::t('app', 'Request Seq No'),
            'order_number' => Yii::t('app', 'Order Number'),
            'attachment_type' => Yii::t('app', 'Attachment Type'),
            'file_url' => Yii::t('app', 'File Url'),
            'number' => Yii::t('app', 'Number'),
            'at_number' => Yii::t('app', 'At Number'),
            'created_at' => Yii::t('app', 'Created At'),
            'updated_at' => Yii::t('app', 'Updated At'),
        ];
    }
}
